import request from '@/plugin/axios'

// 获取分页
export function getparameterpage(params) {
    return request({
        url: '/bdms/parameter/page',
        method: 'get',
        params: request.adornParams(params)
    })
}

// 获取列表
export function getparameterlist(params) {
    return request({
        url: '/bdms/parameter/list',
        method: 'get',
        params: request.adornParams(params)
    })
}

// 获取信息
export function getparameterinfo(id) {
    return request({
        url: '/bdms/parameter/info/' + id,
        method: 'get',
        params: request.adornParams({})
    })
}

// 添加
export function addparameter(data) {
    return request({
        url: '/bdms/parameter/save',
        method: 'post',
        data
    })
}

// 修改
export function updateparameter(data) {
    return request({
        url: '/bdms/parameter/update',
        method: 'put',
        data
    })
}

// 批量删除
export function delBatchparameter(params) {
    return request({
        url: '/bdms/parameter/delete',
        method: 'delete',
        data: request.adornData(params, false)
    })
}

// 删除
export function delparameter(id) {
    return request({
        url: '/bdms/parameter/delete/' + id,
        method: 'delete',
    })
}